package com.example.work4.common

import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.example.work4.R

class ImageUtil (var context: Context){

    fun GlideLoadFitCenter(imageUrl:String, imageView: ImageView)
    {
        Glide.with(context).
        load(FIN.Url+imageUrl).
        placeholder(R.drawable.vector_download_failed).
        fitCenter().
        into(imageView)
    }

    fun GlideLoadCenterCrop(imageUrl:String, imageView: ImageView)
    {
        Glide.with(context).
        load(FIN.Url+imageUrl).
        placeholder(R.drawable.vector_download_failed).
        centerCrop().
        into(imageView)
    }


}